package com.demo.mybatis.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.mybatis.domain.MUserInformation;
import com.demo.mybatis.service.MLoginRegisterService;

@RestController
@RequestMapping("/mybatis")
public class MLoginRegisterController {

	@Autowired
	private MLoginRegisterService loginRegisterService;

	@RequestMapping("/login")
	public MUserInformation login(MUserInformation userInformation) {
		System.err.println("mybatis");
		System.err.println(userInformation);
		return loginRegisterService.login(userInformation);
	}

}
